package com.drinks.yiniang.entity.goods;

import com.drinks.yiniang.entity.comment.BannerEntity;
import com.hansen.library.entity.BaseJson;

import java.util.List;

/**
 * 首页头部数据
 * @author han
 * @date 2019/9/2
 */
public class HomeDataJson extends BaseJson {

    private HomeData data;

    public HomeData getData() {
        return data;
    }

    public void setData(HomeData data) {
        this.data = data;
    }

    public static class HomeData {
        // 顶部Banner
        private List<BannerEntity> top_banner;
        //中间的三个banner
        private List<BannerEntity> mid_banner;
        //分类数组
        private List<HomeGoodsCategory> category;
        //属性列表
        private List<HomeGoodsAttrs> attribute;

        public List<BannerEntity> getTop_banner() {
            return top_banner;
        }

        public void setTop_banner(List<BannerEntity> top_banner) {
            this.top_banner = top_banner;
        }

        public List<BannerEntity> getMid_banner() {
            return mid_banner;
        }

        public void setMid_banner(List<BannerEntity> mid_banner) {
            this.mid_banner = mid_banner;
        }

        public List<HomeGoodsCategory> getCategory() {
            return category;
        }

        public void setCategory(List<HomeGoodsCategory> category) {
            this.category = category;
        }

        public List<HomeGoodsAttrs> getAttribute() {
            return attribute;
        }

        public void setAttribute(List<HomeGoodsAttrs> attribute) {
            this.attribute = attribute;
        }
    }

    public static class HomeGoodsCategory {
        private String category_id;
        private String name;
        private String icon_url;

        public String getCategory_id() {
            return category_id;
        }

        public void setCategory_id(String category_id) {
            this.category_id = category_id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIcon_url() {
            return icon_url;
        }

        public void setIcon_url(String icon_url) {
            this.icon_url = icon_url;
        }
    }

    public static class HomeGoodsAttrs {
        private String id;
        private String name;
        private List<HomeGoodsSubAttrs> sub_category;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<HomeGoodsSubAttrs> getSub_category() {
            return sub_category;
        }

        public void setSub_category(List<HomeGoodsSubAttrs> sub_category) {
            this.sub_category = sub_category;
        }
    }

    public static class HomeGoodsSubAttrs {
        private String id;
        private String name;
        private String en_name;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getEn_name() {
            return en_name;
        }

        public void setEn_name(String en_name) {
            this.en_name = en_name;
        }
    }
}
